<?php

namespace app\admin\model\validate;

use think\Validate;

class AlbumTitle extends Validate {
    protected $rule =   [
        'title'  => 'require|max:42',
    ];

    protected $message  =   [
        'title.require' => '相册标题不能为空',
        'title.max' => '相册标题不能超过42个字符',
    ];

    protected $scene = [
        /*'add'  =>  ['name','theme','start_time', 'end_time', 'attention_tips', 'cover_image_url', 'sort', 'participate_num'],
        'edit'  =>  ['name','theme','start_time', 'end_time', 'attention_tips', 'cover_image_url', 'sort', 'participate_num'],*/
    ];
}